package com.drayge.dotcircle;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {
	private DotCircularRingView circleView;
	private Button restart;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		circleView = (DotCircularRingView) findViewById(R.id.circleView);
		restart = (Button)findViewById(R.id.restart);
		restart.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				circleView.setValue((int)(Math.random()*100));
			}
		});
	}
}
